<template>
  <el-card class="box-card el-mai-box">
    <div slot="header" class="clearfix">
      <span> <i class="el-icon-s-grid"></i> 思维导图</span>
      <el-button style="float: right" @click="falg = !falg">Click Me</el-button>
    </div>

    <transition name="el-zoom-in-top">
      <div v-show="falg">
        <!-- 占位 -->
        <router-view></router-view>
      </div>
    </transition>
  </el-card>
</template>

<script>
export default {
  data() {
    return {
      falg: true
    }
  }
}
</script>

<style lang="less" scoped>
.clearfix:before,
.clearfix:after {
  display: table;
  content: '';
}

.clearfix:after {
  clear: both;
}
.el-mai-box {
  width: 80% !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 20px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: '';
}
.clearfix:after {
  clear: both;
}
.box-card {
  width: 480px;
}
</style>
